package cn.sofwin.test;

import cn.sofwin.sb.entity.User;
import cn.sofwin.sb.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext act = new AnnotationConfigApplicationContext(BaseConfig.class);
        UserService userService = act.getBean(UserService.class);
        User user = userService.get(1);
        System.out.println(user);
    }

}
